package com.bjsxt.chapter2_factory.factoryMethod;

import java.util.Calendar;
import java.util.Date;

/**
 * @ClassName client
 * @Description
 * @Author 黑马程序员
 * @Date 17:12 2024/6/20
 * @Version 1.0
 **/
public class Client {
    public static void main(String[] args) {
        Car c1 = new AudiFactory().createCar();
        c1.run();

        Car c2 = new BydFactory().createCar();
        c2.run();

        Car c3 = new BenzFactory().createCar();
        c3.run();
    }
}
